<%@taglib uri="http://www.springframework.org/tags" prefix="spring"%>
<%@taglib uri="http://www.springframework.org/tags/form" prefix="form"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>

<!DOCTYPE html>
<html>
<head>
<title>EmailAccount Admin | mailadmin.uptel.net</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link
	href="${pageContext.request.contextPath}/resources/css/bootstrap.css"
	rel="stylesheet" />
<link
	href="${pageContext.request.contextPath}/resources/css/bootstrap-responsive.css"
	rel="stylesheet" />
<link href="${pageContext.request.contextPath}/resources/css/docs.css"
	rel="stylesheet" />
<link
	href="${pageContext.request.contextPath}/resources/js/google-code-prettify/prettify.css"
	rel="stylesheet" />

</head>

<body data-spy="scroll" data-target=".subnav" data-offset="50">


	<!-- Navbar
    ================================================== -->
	<div class="navbar navbar-fixed-top">
		<div class="navbar-inner">
			<div class="container">
				<a class="btn btn-navbar" data-toggle="collapse"
					data-target=".nav-collapse"> <span class="icon-bar"></span> <span
					class="icon-bar"></span> <span class="icon-bar"></span>
				</a> <a class="brand" href="./index.html">Bootstrap</a>
				<div class="nav-collapse">
					<ul class="nav">

						<li class="active">
							<a href="${pageContext.request.contextPath}/index.html">
								<spring:message	code="label.alllist" />
							</a>
						</li>

						<li class="">
							<a href="${pageContext.request.contextPath}/add.html">
								<spring:message	code="label.newaccount_legend" />
							</a>
						</li>
						
						<li class=""><a href="./components.html">Components</a></li>
						<li class=""><a href="./javascript.html">Javascript	plugins</a></li>
						<li class=""><a href="./less.html">Using LESS</a></li>
						<li class="divider-vertical"></li>
						<li class=""><a href="./download.html">Customize</a></li>
						<li class=""><a href="./examples.html">Examples</a></li>
					</ul>
				</div>
			</div>
		</div>
	</div>

	<div class="container">

		<div class="row">
			<div class="span3">&nbsp;</div>
			<div class="span8">
				<form:form class="form-horizontal" method="post" action="${pageContext.request.contextPath}/updateEmailAccount.html" commandName="emailAccount">
					<fieldset>
						<legend>
							<spring:message code="label.newaccount_legend" />
						</legend>

						<div class="control-group">
							<form:errors path="username">
								<div class="control-group error">
							</form:errors>

							<form:label class="control-label" path="username" for="input01">
								<spring:message code="label.username" />
							</form:label>
							<div class="controls">
								<form:input class="input-xlarge" path="username" id="input01" />
								<form:errors path="username">
									<spring:bind path="username">
										<p class="help-inline">
											<c:out value="${status.errorMessage}" />
										</p>
									</spring:bind>
								</form:errors>
								<p class="help-block">
									<spring:message code="label.username_help" />
								</p>
							</div>
							<form:errors path="username">
						</div>
						</form:errors>
			</div>


			<div class="control-group">
				<form:errors path="password">
					<div class="control-group error">
				</form:errors>

				<form:label class="control-label" path="password" for="input02">
					<spring:message code="label.password" />
				</form:label>
				<div class="controls">
					<form:input class="input-xlarge" path="password" id="input02" />
					<form:errors path="password">
					<spring:bind path="password">
						<p class="help-inline">
							<c:out value="${status.errorMessage}" />
						</p>
					</spring:bind>
					</form:errors>
					<p class="help-block">A-z,0-9,_,-</p>
				</div>
				<form:errors path="password">
					</div>
				</form:errors>

			</div>

		<div class="control-group">
			<form:label class="control-label" path="fullname" for="input03">
				<spring:message code="label.fullname" />
			</form:label>
			<div class="controls">
				<form:input class="input-xlarge" path="fullname" id="input03" />
				<p class="help-block">
					<spring:message code="label.fullname_help" />
				</p>
			</div>
		</div>

		<div class="control-group">
			<form:errors path="domain">
				<div class="control-group error">
			</form:errors>
		
			<form:label class="control-label" path="domain" for="input04">
				<spring:message code="label.domain" />
			</form:label>
			<div class="controls">
				<form:select path="domain" class="input-xlarge" id="input04">
					<form:option value="NONE" label="--- Select ---" />
					<form:options items="${emailDomainList}" />
				</form:select>
				<form:errors path="domain">
					<spring:bind path="domain">
						<p class="help-inline">
							<c:out value="${status.errorMessage}" />
						</p>
					</spring:bind>
				</form:errors>
			</div>
			<form:errors path="domain">
				</div>
			</form:errors>
			
		</div>

		<div class="control-group">
			<form:label class="control-label" path="active" for="input05">
				<spring:message code="label.active" />
			</form:label>
			<div class="controls">
				<form:checkbox path="active" value="active" class="input"
					id="input05" />
			</div>
		</div>

		<div class="control-group">
			<form:errors path="quota">
				<div class="control-group error">
			</form:errors>
		
			<form:label class="control-label" path="quota" for="input06">
				<spring:message code="label.quota" />
			</form:label>
			<div class="controls">
				<form:input class="input-xlarge" path="quota" id="input06" />
				<form:errors path="quota">
					<spring:bind path="quota">
						<p class="help-inline">
							<c:out value="${status.errorMessage}" />
						</p>
					</spring:bind>
				</form:errors>
				
				<p class="help-block">
					<spring:message code="label.quota_help" />
				</p>
			</div>
			
			<form:errors path="quota">
				</div>
			</form:errors>
			
		</div>

		<div class="control-group">
			<form:label class="control-label" path="imapAllowed" for="input07">
				<spring:message code="label.imapAllowed" />
			</form:label>
			<div class="controls">
				<form:checkbox path="imapAllowed" value="imapAllowed" class="input"
					id="input07" />
				<p class="help-block">
					<spring:message code="label.imapAllowed_help" />
				</p>
			</div>
		</div>



		<div class="form-actions">
			<button type="submit" class="btn btn-primary">
				<spring:message code="label.updateEmailAccount" />
			</button>
			<button type="reset" class="btn">Cancel</button>
		</div>
		<!-- 
						<table id="hor-minimalist-a">
							
							<tr>
								<td colspan="2"><input type="submit"
									value="<spring:message code="label.addEmailAccount"/>" /></td>
							</tr>
						</table>
						 -->
		</fieldset>
		</form:form>
	</div>
	</div>


	</div>
</body>

</html>